#include<stdio.h>
#include<string.h>
int kiemTraDx(char *s)
{
    char c[100];
    strcpy(c,s);
    if (strcmpi(s,strrev(c))==0)
        return 0;
    else return 1;
}
main()
{
    long int n;
    char c[100];
    if(!freopen("vd2.inp","r",stdin))
        return 0;
    if (!freopen("vd2.out","w",stdout))
        return 0;
    scanf("%ld",&n);
    while(n--)
    {
        gets(c);
        if (kiemTraDx(c))
            printf("yes\n");
        else printf("no\n");
    }

}

